{if $item.value or (!$item.disabled and !$item.value)}
<li class="ui-widget ui-widget-content ui-corner-all formPart{if $smarty.session.navigation.detailsDisplay == 1 and !$item.detailsDisplay and !$item.listDisplay} disabled{/if}" id="formPart-{$item.fieldId}">
    {if $item.title}
        {include file="form/label.tpl"}
    {/if}
    <div class="fieldContent" id="fieldContent-{$item.fieldId}">
    {if $item.fieldTag == 'input'}
        {if $item.fieldType == 'file'}
            {include file='form/file/filesList.tpl'}
            {include file='form/file/uploadPanel.tpl'}
        {else}
            {include file="form/input.tpl"}
        {/if}
    {elseif $item.fieldTag == "textarea"}
        {include file="form/textarea.tpl"}
    {elseif $item.fieldTag == "select"}
        {if $item.multiple == 1}
            {include file="form/multiselect/multiselect.tpl"}
        {else}
            {include file="form/select.tpl"}
        {/if}
    {/if}
    </div>
    <script type="text/javascript">
        $('#formPart-{$item.fieldId} .form-part-checkbox').button();
    </script>
</li>
{/if}
